package com.dobbinsoft.iotechn.ability.service.open;

import com.dobbinsoft.iotechn.ability.api.open.AbilityService;
import com.dobbinsoft.iotechn.ability.model.DeviceOpenApiDocument;
import com.dobbinsoft.iotechn.ability.openapi.IOpenApiManager;
import com.dobbinsoft.iotechn.core.exception.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * Description:
 * User: rize
 * Date: 2020/7/7
 * Time: 21:43
 */
@Service("abilityService")
public class AbilityServiceImpl implements AbilityService {

    @Autowired
    private IOpenApiManager openApiManager;

    @Override
    public Set<DeviceOpenApiDocument> list() throws ServiceException {
        return openApiManager.listDoc();
    }
}
